<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/bootstrap.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/icheck.css"/>
<script src="/WebYiZhi/Template/Home/Js/jquery-2.1.1.js"></script>
<script src="/WebYiZhi/Template/Home/Js/bootstrap.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.form/3.46.0/jquery.form.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('.pngfix,.icon');</script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

<![endif]-->
<script src="/WebYiZhi/Public/layer/layer.js"></script>
<!--自己的css-->
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/login.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/style.css"/>
<script src="/WebYiZhi/Template/Home/Js/message.js"></script>
<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/Validform_v5.3.2_min.js"></script>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/index.css"/>
<script src="/WebYiZhi/Template/Home/Js/Chart.js"></script>
<script src="/WebYiZhi/Template/Home/Js/Chart-1.0.1-beta.4.js"></script>
<script src="/WebYiZhi/Template/Home/Js/index.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
<div  class="header">
    <div class="header_box">
        <div class="header_cont">
            <div class="head_l lt">您好！欢迎来到移植网</div>
            <div class="head_r rt">
                <span><a href="JavaScript:;"><?php echo ($realname); ?></a>医生，欢迎您回来！</span>
                <span><a href="JavaScript:;">消息</a></span>
                <span><b></b><a href="<?php echo U('DoctorInfo/info');?>">个人中心</a></span>
                <span><a href="<?php echo U('DoctorInfo/loginout');?>">退出</a></span>
            </div>
        </div>
    </div>
</div>
<div class="mainbox">
    <div class="news">
        <p><span class="lt">消息公告</span><a class="rt" href="javascript:;">更多</a></p>
        <ul>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
            <li><span>张洁患者给你发来了化验检查报告</span><b>2017-10-23</b></li>
        </ul>
    </div>
    <div class="analyse" >
        <p><span class="lt">数据分析</span></p>
        <select name="" id="" onchange="dendrogram(this)">
            <option value="">2017年</option>
            <option value="">2016年</option>
            <option value="">2015年</option>
            <option value="">2014年</option>
        </select>
        <canvas id="myChart"  width="420px"  height="290px" ></canvas>
    </div>
    <div class="number">
        <p><span class="lt">病人数量</span></p>
        <div class="btn_box">
            <P><span>病人总数</span><a href="javascript:;">561</a></P>
            <P><span>当前患者</span><a href="javascript:;">561</a></P>
            <P><span>待诊断患者</span><a href="javascript:;">164</a></P>
            <p><a href="javascript:;">进入诊疗</a></p>
        </div>
    </div>
</div>

<div class="lists">
    <span>患者列表</span>
    <p>
      <span>
        <select name="" id="">
            <option value="">姓名</option>
            <option value="">性别</option>
            <option value="">血型</option>
            <option value="">中心名称</option>
            <option value="">供者来源</option>
         </select>
        </span>
        <span><input type="text"  placeholder="请输入您的条件"/><button>查询</button></span>
        <span><a href="">导出</a></span>
    </p>

    <table class="table table-bordered text-center">
        <tr class="bg-success">
            <th class="text-center">编号</th>
            <!--<th class="text-center">中心名称</th>-->
            <th class="text-center">姓名</th>
            <th class="text-center">性别</th>
            <th class="text-center">移植类型</th>
            <th class="text-center">血型</th>
            <th class="text-center">移植日期</th>
            <th class="text-center">供者来源</th>
            <th class="text-center">出生日期</th>
            <th class="text-center">操作</th>
        </tr>
        <?php if(is_array($patientlist)): $i = 0; $__LIST__ = $patientlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                <td><?php echo ($key+1); ?></td>
                <!--<td>第四军医大学</td>-->
                <td><?php echo ($v['patientid']['realname']); ?></td>
                <td>
                    <?php if($v['sex'] == 1): ?>男<?php else: ?>女<?php endif; ?>
                </td>
                <td>肾移植</td>
                <td><?php echo getfildname(bloodtypeinfo,$v['patientid']['bloodid']);?></td>
                <td>2011-10-10</td>
                <td>公民逝世器官捐献（DCD）</td>
                <td>1981-05-30</td>
                <td>
                    <a href="<?php echo U('PatientInfo/detail',array('id'=>$v['patientid']['id']));?>"><span class="label label-danger radius">查看</span></a>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>

    </table>
    <div class="page"><?php echo ($page); ?></div>
</div>
<!--尾部开始-->
<div class="footer">
    <div class="navbox">
        <ul>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>1));?>" <?php if($_GET['genre'] == 1): ?>class="footer_txt"<?php endif; ?> <?php if(!$_GET['genre']): ?>class="footer_txt"<?php endif; ?>>首页</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>2,'type'=>1));?>" <?php if($_GET['genre'] == 2): ?>class="footer_txt"<?php endif; ?>>我的患者</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>3));?>" <?php if($_GET['genre'] == 3): ?>class="footer_txt"<?php endif; ?>>社区资讯</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>4));?>" <?php if($_GET['genre'] == 4): ?>class="footer_txt"<?php endif; ?>>个人中心</a></li>
        </ul></div>
    <div class="footer_cont">
        <p>Copyright © 2008-2014 Change360.cn All Rights Reserved 陕西类星体信息科技有限公司</p>
        <p> 地址：陕西省西安市高新区高新一路正信大厦A座204室</p>
    </div>
</div>
<!--尾部结束-->
<!--</footer>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/Validform/5.3.2/Validform.min.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.form/3.46.0/jquery.form.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/layer/2.1/layer.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/layer/2.1/extend/layer.ext.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/js/H-ui.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/js/H-ui.admin.js"></script>-->

<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/icheck/jquery.icheck.min.js"></script>-->

<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/laypage/1.2/laypage.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/My97DatePicker/WdatePicker.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.cookie/jquery.cookie.js"></script>`-->
<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/common.js"></script>
<!--<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/jquery.dataTables.min.js"> </script>-->
<!--<script  type="text/javascript"  src="/WebYiZhi/Template/Home/Js/info.js"></script>-->

</body>
<script>
    var  data;
    data = {
        labels : ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],
        datasets : [{ barItemName: "name1",fillColor : "rgba(1%, 100%, 0%, 0.3)",strokeColor : "rgba(220,220,220,1)",data : [65,59,90,81,56,55,40,50,60,70,90,200]}]
    };
    var chartBar = null;
    window.onload = function() {
        var ctx = document.getElementById("myChart").getContext("2d");
        chartBar = new Chart(ctx).Bar(data);
    };
    function dendrogram() {
        data.datasets[0]['data']=[10,20,30,40,50,60,70,80,90,100,110,120];
        var ctx = document.getElementById("myChart").getContext("2d");
        chartBar = new Chart(ctx).Bar(data);
    }
</script>
</html>